package com.beici.waterghost.controller;

import com.beici.waterghost.model.resultes;
import com.beici.waterghost.service.classBoxInterface.classBoxAlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther WaterGhost
 * @date 2022/3/22 20:01
 */
@RestController
@CrossOrigin
@RequestMapping("/cbalbum")
public class classBoxAlbumController {
    @Autowired
    private classBoxAlbumService boxAlbumService;

    @GetMapping("/album")
    public resultes getAlbumAll(){
        return boxAlbumService.getAlbum();
    }

    @GetMapping("/AlbumAll")
    public resultes getAlbumKVAll(){
        return boxAlbumService.getAlbumAll();
    }
}
